package top.mczhengyi.xyblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@TableName("u_user")
@Data
public class User {
    // ID
    @TableId(type = IdType.AUTO)
    private Integer id;
    // 用户名
    private String username;
    // 密码
    @JsonIgnore
    private String password;
    // 加密盐
    @JsonIgnore
    private String slat;
    // 邮箱
    private String email;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;
    // 禁用状态
    private Boolean baned;
}
